/**********************************************************************************
 * cxc demo
 * All rights reserved.
 * @author:chenxiaocang
 * 2013-4-25 下午10:22:32
 *@description:
**********************************************************************************/
package com.cxc.myweb.demo.util;

import java.util.HashMap;
import java.util.Map;

public class JsonResult {
	final String RET="ret";
	final String CONTENT="CONTENT";
	private Map<String,Object> dataMap;
	
	public JsonResult() {
		dataMap = new HashMap<String,Object>();
	}
	
	public void addValue(int ret) {
		dataMap.put(RET, ret);
	}
	
	public void addContent(Object obj) {
		dataMap.put(CONTENT, obj);
	}
	
	/**
	 * map to json string
	 * @return
	 */
	public String toJson(){
		//TODO:
		return "[]";
	}
}
